package com.ycfmedical.bed.bean;

import android.os.Parcel;
import android.os.Parcelable;

import cn.droidlover.xdroidmvp.event.IBus;

/**
 * Created by Administrator on 2017-04-12.
 * 体征参数保存类
 */

public class BodySignParameterInfo implements Parcelable,IBus.IEvent{

    private String orderMessage;
    private String HeartRate ;//心率
    private String breathe;//呼吸
    private String bodyState;//床状态
    private String bedState;//传感器

    @Override
    public int getTag() {
        return 10;
    }

    public BodySignParameterInfo( String orderMessage,String HeartRate, String breathe, String bodyState, String bedState)
    {
        this.orderMessage = orderMessage;
        this.HeartRate = HeartRate;
        this.breathe = breathe;
        this.bodyState = bodyState;
        this.bedState = bedState;
    }

    public String getHeartRate() {
        return HeartRate;
    }

    public void setHeartRate(String heartRate) {
        this.HeartRate = heartRate;
    }

    public String getBreathe() {
        return breathe;
    }

    public void setBreathe(String breathe) {
        this.breathe = breathe;
    }

    public String getBodyState() {
        return bodyState;
    }

    public void setBodyState(String bodyState) {
        this.bodyState = bodyState;
    }

    public String getBedState() {
        return bedState;
    }

    public void setBedState(String bedState) {
        this.bedState = bedState;
    }

    public String getOrderMessage() {return orderMessage;}

    public void setOrderMessage(String orderMessage) {this.orderMessage = orderMessage;}

    public static Creator<BodySignParameterInfo> getCREATOR() {
        return CREATOR;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.orderMessage);
        dest.writeString(this.HeartRate);
        dest.writeString(this.breathe);
        dest.writeString(this.bodyState);
        dest.writeString(this.bedState);
    }

    protected BodySignParameterInfo(Parcel in) {
        this.HeartRate = in.readString();
        this.HeartRate = in.readString();
        this.breathe = in.readString();
        this.bodyState = in.readString();
        this.bedState = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<BodySignParameterInfo> CREATOR = new Creator<BodySignParameterInfo>() {
        @Override
        public BodySignParameterInfo createFromParcel(Parcel source) {
            return null;
        }

        @Override
        public BodySignParameterInfo[] newArray(int size) {
            return new BodySignParameterInfo[0];
        }
    };
}
